package com.itheima.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 配置类
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
//    @Autowired
//    private DemonInterCeptor demonInterCeptor;
//    @Autowired
//    private TokenInterCeptor tokenInterCeptor;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenInterCeptor).addPathPatterns("/**")//拦截所有请求
//                .excludePathPatterns("/login");//不拦截哪些路劲
//    }
//}
}
